#!/bin/bash

echo "更换apt源为北大源"
echo 
read -p "回车继续"

sed -ri.bak -e 's/\/\/.*?(archive.ubuntu.com|mirrors.*?)\/ubuntu/\/\/mirrors.pku.edu.cn\/ubuntu/g' -e '/security.ubuntu.com\/ubuntu/d' /etc/apt/sources.list
apt update
apt upgrade
apt install build-essential gcc-multilib
